<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>chigraph: chi::Result::ScopedContext Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="chigraphDoxygenIcon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">chigraph
   &#160;<span id="projectnumber">master</span>
   </div>
   <div id="projectbrief">Systems programming language written for beginners in LLVM</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structchi_1_1Result_1_1ScopedContext.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structchi_1_1Result_1_1ScopedContext-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">chi::Result::ScopedContext Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A helper object for contexts that should be removed at the end of a scope.  
 <a href="structchi_1_1Result_1_1ScopedContext.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="Result_8hpp_source.html">chi/Support/Result.hpp</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Collaboration diagram for chi::Result::ScopedContext:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1Result_1_1ScopedContext__coll__graph.svg" width="226" height="216"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a15e5138daea652e91c8c91b0a80a9f60"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1Result_1_1ScopedContext.html#a15e5138daea652e91c8c91b0a80a9f60">ScopedContext</a> (<a class="el" href="structchi_1_1Result.html">Result</a> &amp;res, int ctxId)</td></tr>
<tr class="memdesc:a15e5138daea652e91c8c91b0a80a9f60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a scoped context object.  <a href="#a15e5138daea652e91c8c91b0a80a9f60">More...</a><br /></td></tr>
<tr class="separator:a15e5138daea652e91c8c91b0a80a9f60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a376eac6f57c30e55b9f9d7eb308232ba"><td class="memItemLeft" align="right" valign="top"><a id="a376eac6f57c30e55b9f9d7eb308232ba"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1Result_1_1ScopedContext.html#a376eac6f57c30e55b9f9d7eb308232ba">~ScopedContext</a> ()</td></tr>
<tr class="memdesc:a376eac6f57c30e55b9f9d7eb308232ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor&ndash;does the magic of remving itsself from the result. <br /></td></tr>
<tr class="separator:a376eac6f57c30e55b9f9d7eb308232ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ab5f480c619fad5ccaf21779c12136be7"><td class="memItemLeft" align="right" valign="top"><a id="ab5f480c619fad5ccaf21779c12136be7"></a>
const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1Result_1_1ScopedContext.html#ab5f480c619fad5ccaf21779c12136be7">contextId</a></td></tr>
<tr class="memdesc:ab5f480c619fad5ccaf21779c12136be7"><td class="mdescLeft">&#160;</td><td class="mdescRight">The ID for this context. <br /></td></tr>
<tr class="separator:ab5f480c619fad5ccaf21779c12136be7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a755e2e4acedc8c0be475c4678e3d4b52"><td class="memItemLeft" align="right" valign="top"><a id="a755e2e4acedc8c0be475c4678e3d4b52"></a>
<a class="el" href="structchi_1_1Result.html">Result</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1Result_1_1ScopedContext.html#a755e2e4acedc8c0be475c4678e3d4b52">result</a></td></tr>
<tr class="memdesc:a755e2e4acedc8c0be475c4678e3d4b52"><td class="mdescLeft">&#160;</td><td class="mdescRight">The result object. <br /></td></tr>
<tr class="separator:a755e2e4acedc8c0be475c4678e3d4b52"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A helper object for contexts that should be removed at the end of a scope. </p>

<p class="definition">Definition at line <a class="el" href="Result_8hpp_source.html#l00074">74</a> of file <a class="el" href="Result_8hpp_source.html">Result.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a15e5138daea652e91c8c91b0a80a9f60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15e5138daea652e91c8c91b0a80a9f60">&#9670;&nbsp;</a></span>ScopedContext()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">chi::Result::ScopedContext::ScopedContext </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structchi_1_1Result.html">Result</a> &amp;&#160;</td>
          <td class="paramname"><em>res</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ctxId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a scoped context object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">res</td><td>The <a class="el" href="structchi_1_1Result.html" title="The result object, used for identifiying errors with good diagnostics. ">Result</a> to add it to </td></tr>
    <tr><td class="paramname">ctxId</td><td>The ID of this context object </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="Result_8hpp_source.html#l00078">78</a> of file <a class="el" href="Result_8hpp_source.html">Result.hpp</a>.</p>

<p class="reference">References <a class="el" href="Result_8hpp_source.html#l00087">contextId</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>lib/support/include/chi/Support/<a class="el" href="Result_8hpp_source.html">Result.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacechi.html">chi</a></li><li class="navelem"><a class="el" href="structchi_1_1Result.html">Result</a></li><li class="navelem"><a class="el" href="structchi_1_1Result_1_1ScopedContext.html">ScopedContext</a></li>
    <li class="footer">Generated on Sat Sep 16 2017 17:41:35 for chigraph by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
